package com.mab.mall.cart.feign;

import com.msb.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name="mall-product")
public interface ProductFeignService {

    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);

    /**
     * 信息
     */
    @RequestMapping("/product/skusaleattrvalue/saleAttrs/{skuId}")
    List<String> getSkuSaleAttrs(@PathVariable("skuId") Long skuId);
}
